package com.alatus.ai.app;

import org.springframework.ai.ollama.OllamaChatClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OllamaChatController {
    @Autowired
    private OllamaChatClient ollamaChatClient;
    @GetMapping("/ollama/chat")
    public String chat(String question) {
        return ollamaChatClient.call(question);
    }
}
